package com.cqvip.innocence.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqvip.innocence.project.model.entity.Resource;
import com.cqvip.innocence.project.model.entity.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Innocence
 * @since 2020-07-13
 */
public interface ResourceMapper extends BaseMapper<Resource> {

    /**
     * 根据角色ID查询对应的权限
     * @author Innocence
     * @date 2020/7/14
     * @param roleId
     * @return java.util.List<com.cqvip.innocence.model.entity.Resource>
     */
    List<Resource> getResourcesByRoleId(Long roleId);
}
